import request from '@/utils/request'
const serviceName = 'System'

export function queryRoles(data) {
  return request({
    url: serviceName + '/Role/QueryRole',
    method: 'post',
    data
  })
}

export function getRole(Id) {
  return request({
    url: serviceName + '/Role/GetRole?Id=' + Id,
    method: 'get'
  })
}

export function saveRole(data) {
  return request({
    url: serviceName + '/Role/SaveRole',
    method: 'post',
    data
  })
}

export function deleteRoles(data) {
  return request({
    url: serviceName + '/Role/DeleteRoles',
    method: 'post',
    data
  })
}

export default {
  queryRoles,
  getRole,
  saveRole,
  deleteRoles
}
